//
//  CoffeeViewController.m
//  Qihuo
//
//  Created by Cheng Qi on 13-12-15.
//  Copyright (c) 2013年 Vencoo. All rights reserved.
//

#import "CoffeeViewController.h"

@interface CoffeeViewController ()

@end

@implementation CoffeeViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}
#pragma mark---Resource
-(void)changeView
{
    self.title =@"咖啡吧日常巡检表";
  
    UIImage *blackImage = [UIImage imageNamed:@"黑底"];
    self.myTableView.frame=CGRectMake(interval111/2, 64, 0,screenHeight - blackImage.size.height - 64);
    self.whiteImageView.frame=CGRectMake(self.myTableView.frame.origin.x + self.myTableView.frame.size.width, self.myTableView.frame.origin.y, scrennWidth - (self.myTableView.frame.origin.x)*2 -self.myTableView.frame.size.width, self.myTableView.frame.size.height + 100);
    self.backScrollV.frame =CGRectMake(10, 10, self.whiteImageView.frame.size.width - 20, self.whiteImageView.frame.size.height - 20);
    NSLog(@"width:%f--height:%f",self.backScrollV.frame.size.width,self.backScrollV.frame.size.height);
    _contentView =[[[NSBundle mainBundle]loadNibNamed:@"Coffee" owner:self options:nil]lastObject];
    self.blackView.hidden = 1;
    [self.backScrollV addSubview:_contentView];
    [self.backScrollV setContentSize:CGSizeMake(984, 2200)];
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    [self changeView];
	// Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
